package com.lims.common;


import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author limaosheng
 * @create 12:12 2021/9/2
 * @desc 错误码
 */
@Getter
@AllArgsConstructor
public enum ResultCode {
    /**
     * 异常错误码
     */
    SUCCESS(0,"成功"),
    INTERNAL_SERVER_ERROR(500, "服务器内部错误"),
    COMM_ERROR(901,""),
    CONTENT_TYPE_ERROR(902,"Content-Type不能为空"),
    POST_ERROR(903,"本服务只允许POST请求"),
    JSON_ERROR(904,"本服务只允许Content-Type为application/json格式的请求"),
    PARAM_ERROR(1001,"参数不合法"),
    ;

    private Integer code;
    private String msg;
}
